package Class.Advance.Interface.Basis;

interface test{
    public abstract void saySomething();

    public abstract void eatSomething();
}

abstract class test1{
    public abstract void saySomething();
}

interface test3{
    public abstract void eat();
}

//接口可以在子类继承其他类时实现，并可以多实现
public class Basis extends test1 implements test, test3{
    //下方的saySomething同时满足了test和test1中重写的需求
    @Override
    public void saySomething() {
    }

    @Override
    public void eatSomething() {
    }

    @Override
    public void eat() {

    }
}
